import java.io.*;
import java.net.*;

public class Client {
	File file;
	InputStream readFromFile;
	OutputStream writeToFile;

	Socket socket;
	InputStream readFromServer;
	OutputStream writeToServer;

	public static void main(String args[]) {
		Client client = new Client();
		client.run();
		client.tearDown();
	}

	public Client() {
		file = new File("help.txt");
		try {
			readFromServer = new FileInputStream(file);
			writeToServer = new FileOutputStream(file);
		} catch (FileNotFoundException e1) {
			e1.printStackTrace();
		}

		try {
			socket = new Socket("127.0.0.1", 9090);
			writeToServer = socket.getOutputStream();
			readFromServer = socket.getInputStream();
		} catch (UnknownHostException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	public void run() {
		


	}

	public void tearDown() {
		try {
			writeToServer.flush();
			writeToFile.flush();
			writeToServer.close();
			writeToFile.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	
	}

}
